<template>
    <el-card>
        <bpmn ref="bpmnRef" :defaultXmlStr="defaultBpmnFile" :callType="callType" :audit="this.$route.query.audit"/>
    </el-card>
</template>

<script>
import bpmn from '@/components/bpmn'
import {getBpmnFile} from '@/api/common/auditProcessApi'
export default {
    components:{bpmn},
    data(){
        return {
            defaultBpmnFile:"",
            callType:"update"
        }
    },
    mounted(){
        getBpmnFile(this.$route.query.audit.processInstanceId).then(async data=>{
            this.defaultBpmnFile = data;
        }).catch(err=>{
            this.$message.error(err);
        })
    }
}
</script>

<style scoped>

</style>
